/**
 * DataSourceConfigDao.java
 * 2012-3-16 下午10:51:52
 */
package xgenerator.dao;

import java.util.Properties;
import java.util.Vector;

/**
 * <p>
 * Title：DataSourceConfigDao
 * </p>
 * <p>
 * Description:具体功能见各方法描述
 * </p>
 * <p>
 * Copyright:Copyright (c) 2012
 * </p>
 * 
 * @author <a href="mailto:lishushan@gmail.com">liss</a>
 * @version 1.0
 */
public interface DataSourceConfigDao extends Dao {
	
	/**
	 * <p>
	 * Title：根据数据源名称，获取数据库类型
	 * </p>
	 * @author <a href="mailto:shushanlee@msn.com">liss</a>
	 * @param dataSourceName
	 */
	public String getDbType(String dataSourceName);
	
	public Vector<String> findAllDataSourceNames();
	public Properties findByName(String dataSourceName);
	public long insert(Properties properties);
	public void update(Properties properties);
	public void delete(String dataSourceName);
}
